package com.mattgarner.jaddas.common;

public final class ColumnType {

	// undefined type
	public final static byte COLUMN_TYPE_UNDEFINED = 0;
	
	// numeric types
	public final static byte COLUMN_TYPE_INT = 1;
	public final static byte COLUMN_TYPE_SHORT = 2;
	public final static byte COLUMN_TYPE_LONG = 3;
	public final static byte COLUMN_TYPE_DOUBLE = 4;
	
	// string types
	public final static byte COLUMN_TYPE_VARCHAR = 11;
	public final static byte COLUMN_TYPE_TEXT = 12;
	
	// binary types
	public final static byte COLUMN_TYPE_BINARY = 21;
	
	// date and time stypes
	public final static byte COLUMN_TYPE_DATETIME = 31;
	public final static byte COLUMN_TYPE_DATE = 32;
	public final static byte COLUMN_TYPE_TIME = 33;
	
	// key types
	public final static byte COLUMN_TYPE_PRIKEY_INT = -1;
	public final static byte COLUMN_TYPE_PRIKEY_SHORT = -2;
	public final static byte COLUMN_TYPE_PRIKEY_LONG = -3;
	public final static byte COLUMN_TYPE_PRIKEY_VARCHAR = -11;
	
	// auto incrementable types
	public final static byte COLUMN_TYPE_PRIKEY_INT_AUTOINCREMENT = -101;
	public final static byte COLUMN_TYPE_PRIKEY_SHORT_AUTOINCREMENT = -102;
	public final static byte COLUMN_TYPE_PRIKEY_LONG_AUTOINCREMENT = -103;
	
}
